
<!--
代码为自动生成 Created by www.magicalcoder.com
 如果你改变了此类 read 请将此行删除
 欢迎加入官方QQ群:323237052
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head  th:include="magicalcoder/v001/include/head :: commonHead('左侧二级菜单编辑')"/>

<body class="childrenBody layui-hide">
<form class="layui-form" style="width:80%;">

        <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_id">
        <label class="layui-form-label">主键</label>
        <div class="layui-input-block">
            <input type="text" disabled="true" class="layui-input" name="id"  placeholder="主键自动生成，无需手动编辑,如果重置则变成增加数据"/>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_moduleCategoryId">
        <label class="layui-form-label">一级菜单</label>
        <div class="layui-input-block">
             <select name="moduleCategoryId"  data-url="admin/sys_module_category_rest/search" data-id="id" data-text-fields="moduleCategoryName" class="magicalcoder-foreign-select2 layui-input" lay-ignore="true" lay-verify="magicalCoderVerify|mc_required" magicalcoder-verify="" data-value=""  placeholder="请输入所属一级菜单"><option value=""></option></select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_moduleTitle">
        <label class="layui-form-label">二级菜单标题</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="moduleTitle" placeholder="请输入二级菜单标题" lay-verify="magicalCoderVerify|mc_required" magicalcoder-verify="" value="" />
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_moduleName">
        <label class="layui-form-label">二级菜单唯一值</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="moduleName" placeholder="建议使用全小写表名称" lay-verify="magicalCoderVerify|mc_required" magicalcoder-verify="" value="" />
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_moduleUrl">
        <label class="layui-form-label">菜单链接地址</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="moduleUrl" placeholder="请输入菜单链接地址" lay-verify="magicalCoderVerify|mc_required" magicalcoder-verify="|definedOne=admin/page/[a-z0-9_]+/list.*" value="admin/page/把我改成小写表名称/list" />
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_sortNum">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="sortNum" placeholder="请输入排序" lay-verify="magicalCoderVerify|mc_number" magicalcoder-verify="" value="" />
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12 security_edit_form_param_ifShow">
        <label class="layui-form-label">是否显示</label>
        <div class="layui-input-block">
            <input type="checkbox" name="ifShow" lay-skin="switch" lay-text="是|否" lay-verify="magicalCoderVerify" magicalcoder-verify=""  checked="checked" />
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn security_edit_form_operate_save" lay-submit="" lay-filter="save">立即提交</button>
            <button type="reset" class="layui-hide layui-btn layui-btn-primary" >重置</button>
        </div>
    </div>
</form>
    <div th:replace="magicalcoder/v001/include/main-js :: commonMain" />
    <script type="text/javascript"  th:src="@{/assets/admin/sysmodule/sysmodule-edit.js}"></script>
</body>
</html>
